package com.lingxu.api.ztb.mapper;

import com.lingxu.api.ztb.model.BiaoduanBidderPair;
import com.lingxu.api.ztb.model.ZtbBiddingcandidate;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lingxu.api.ztb.model.vo.ZtbBiddingcandidateVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;


import java.util.List;
import java.util.Map;

/**
 * 中标候选人公告 Mapper接口
 *
 * @author admin
 * @since 2025-07-24
 */
@Mapper
public interface ZtbBiddingcandidateMapper extends BaseMapper<ZtbBiddingcandidate> {
    /**
     * 查询中标候选人公告
     *
     * @return
     */
    List<ZtbBiddingcandidateVO> selectZtbBiddingcandidateList(@Param("query") ZtbBiddingcandidateVO vo);

    IPage<ZtbBiddingcandidateVO> pageList(@Param("page") Page<ZtbBiddingcandidateVO> page, @Param("query") ZtbBiddingcandidateVO vo);

    List<ZtbBiddingcandidateVO> getDataForExport(@Param("query") ZtbBiddingcandidateVO vo);

    void createTempTable(@Param("batchFlag")String batchFlag);
    void insertTempTable(@Param("list") List<ZtbBiddingcandidateVO> dataList, @Param("batchFlag")String batchFlag);
    void insertTable(@Param("batchFlag")String batchFlag);
    void dropTempTable(@Param("batchFlag")String batchFlag);

    String isHxr(@Param("biaoduanid") String biaoduanid,@Param("biddercompanyname") String biddercompanyname);

}
